package com.board.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.board.dto.OrderCommentDto;
import com.board.dto.StoreReplyDto;
import com.board.entity.OrderComment;
import com.board.param.FindStoreCommentParam;
import com.board.param.StoreCommentReplyParam;
import com.board.param.UserCommentParam;
import com.board.param.UserFindCommentParam;
import com.board.util.PageInfo;

/**
 * <p>
 * 膳食系统-订单评价表 服务类
 * </p>
 *
 * @author 小叶
 * @since 2024年04月04日
 */
public interface OrderCommentService extends IService<OrderComment> {

    //用户评价订单
    OrderCommentDto userCommentOrder(UserCommentParam param, Integer userId);

    //用户删除评价
    OrderCommentDto userDelComment(Integer commentId, Integer userId);

    //商家回复评论
    StoreReplyDto storeComment(StoreCommentReplyParam param, Integer storeId);

    //根据id查询评价
    OrderCommentDto findCommentById(Integer id);

    //用户条件查询评价
    PageInfo<OrderCommentDto> userFindComment(UserFindCommentParam param, Integer userId);

    //条件查询某个商家的评价
    PageInfo<OrderCommentDto> storeFindComment(FindStoreCommentParam toBean);
}
